package com.leji.song.myOrder.model;

/**
 * Created by colin.ding on 2014/6/23.
 */
public class DS_MyOrder {
    /*
    id:订单ID
shopsId:商家id
code:订单号
shopsName:商家名称
goodsName:订单商品名称
sumprice：订单总价
state：订单状态（0下单成功、1配送中、2已完成、3已取消）
time：订单时间
tag：订单类型（1美食外送订单、2水果配送订单）


     */


    String id;
    String shopsId;
    String code;
    String shopsname;
    String goodsname;
    String sumprice;
    String state;
    String time;
    String tag;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getShopsId() {
        return shopsId;
    }

    public void setShopsId(String shopsId) {
        this.shopsId = shopsId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getShopsname() {
        return shopsname;
    }

    public void setShopsname(String shopsname) {
        this.shopsname = shopsname;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public String getSumprice() {
        return sumprice;
    }

    public void setSumprice(String sumprice) {
        this.sumprice = sumprice;
    }

    public String getState() {
        if(state.equals("0")){
            return "下单成功";
        }else if(state.equals("1")){
            return "配送中";
        }else if(state.equals("2")){
            return "已完成";
        }else if(state.equals("3")){
            return "已取消";
        }

        return "";
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }
}
